/**
 * 
 */
package com.tx.think;

/**
 * 
 * @author wanghy
 * @since 2013-12-6
 * 
 */
class Value {
	int i;

	public boolean equals(Value v) {
		return this.i == v.i;
	}
}

public class EqualsMethod2 {
	String str = "";

	public static void main(String[] args) {
		Value v1 = new Value();
		Value v2 = new Value();
		v1.i = v2.i = 100;
		System.out.println(v1.equals(v2));
	}
}